#! /bin/sh

# Add a rule to the crontab

# grep -q torrent_watchdog /etc/crontab || echo "0-59/20 * * * * root /opt/sbin/torrent_watchdog &>/dev/null" >> /etc/crontab
# m h dom mon dow user  command
grep -q torrent_watchdog /opt/etc/crontab || echo "*/30 * * * * admin nice /opt/sbin/torrent_watchdog" >> /opt/etc/crontab


# 
echo "Please note that /opt/etc/init.d/S80busybox_httpd is installed for"
echo "running CGI interface at http://localhost:8008/cgi-bin/torrent.cgi"
